package com.gaoxin.api.service.eduservice;

import java.util.List;
import java.util.logging.Logger;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gaoxin.api.dao.edudao.QueryAllClassDao;
import com.gaoxin.api.entity.eduentity.Clazz;

/**
 * 查询所有班级-业务层
 * @author linhailong
 *
 */
@Service
public class QueryAllClassService {

	Logger log = Logger.getLogger("~~QueryAllClassService~~~~~~~~");
	@Autowired
	private QueryAllClassDao queryAllClassDao;
	
	public List<Clazz> queryAllClass(Clazz clazz)throws Exception{
		return queryAllClassDao.queryAllClass(clazz);
	}
	/**
	 * 查询二级学院
	 * @return
	 * @throws Exception
	 */
	public List<Clazz> queryDept()throws Exception{
		return queryAllClassDao.queryDept();
	}
	/**
	 * 查询二级学院对应的专业
	 * @param clazz
	 * @return
	 * @throws Exception
	 */
	public List<Clazz> queryMajor(Clazz clazz)throws Exception{
		return queryAllClassDao.queryMajor(clazz);
	}
}
